package org.openstock.impl.def.core.model;

public class Scrip implements Comparable<Scrip>{

	private Exchange exchange;
	private String code;
	private String name;
	
	public int compareTo(Scrip o) {
		if(o != null && o.getName() != null && getName() != null){
			return getName().compareToIgnoreCase(o.getName());
		}
		return 0;
	}
	
	public Exchange getExchange() {
		return exchange;
	}
	public void setExchange(Exchange exchange) {
		this.exchange = exchange;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
}
